/*
 * @Author: Ryan Huang
 * @Description:
 * @Date: 2019-04-04 20:11:59
 */
package model

const ServerAddr = "127.0.0.1:8888"

type Header struct {
	Addr  string `json:"addr"`
	Name  string `json:"name"`
	Index int    `json:"index"`
	Time  int    `json:"time"`
}

type Body struct {
	Content string `json:"content"`
}

type Msg struct {
	Header
	Body
}

func SendMsg() {
	/*
		udpAddr, _ := net.ResolveUDPAddr("udp", serverAddr)
		conn, _ := net.DialUDP("udp", nil, udpAddr)
	*/
}

func ReceiveMsg() {

}
